package com.lyl.serviceedu;

import java.util.HashMap;
import java.util.Map;

public class MstJiHe {
    public static void main(String[] args) {



        HashMap<String,String> map= new HashMap();
        map.put("张三","在韩国男山哈哈哈");
        map.put("李四","李四");
        map.put("赵六","李四");// 添加的顺序做排序, 而是按照 hash值做排序

        for (String key: map.keySet()         ) {
            System.out.println(key+":"+ map.get(key));
        }
    }
}
